PHY MAKE RIGID BODY DYNAMIC CAPSULE

Create a new dynamic rigid body capsule that is attached to an object.

  Syntax
PHY MAKE RIGID BODY DYNAMIC CAPSULE ID
PHY MAKE RIGID BODY DYNAMIC CAPSULE ID, material
  Parameters
ID
Integer
identification number of the 3D object that you want to be represented by a dynamic capsule in the simulation
material
Integer
this parameter is optional, a material can be specified if required upon creation of a dynamic rigid body capsule, by specifying a material you can have further control over how the object will react with other objects in regard to properties such as its

  Returns

  Description

This command will simulate the object as a capsule within the physics simulation. As an example imagine a character object on screen. When creating a rigid body capsule for this object the capsule will fit around this character from its head to its feet. This capsule is not displayed on screen and is used internally for the simulation as a way of representing your object. As the object will be represented by a dynamic rigid body capsule it will be affected by forces such as gravity etc.

Simulating objects within the scene as simplistic shapes allows for much faster processing and it is preferable to have objects represented by rigid body boxes and spheres where possible. After creating a rigid body capsule it will be entered into the simulation for processing. The physics simulation will then take over control of the object that was attached to the rigid body sphere. You will not be able to move this object using commands such as position object. The size of the capsule is calculated based on the size of the specified object.

  Example Code
No example code is provided for this command